<template>
  <div class="home">
    <el-container>
      <el-header>
        <ul>
          <li>
            <span>登陆</span>
            <span>|</span>
            <span>注册</span>
          </li>
          <li>
            <span>我的订单</span>
          </li>
          <li>
            <span>我的收藏</span>
          </li>
          <li>
            <span>购物车</span>
          </li>
        </ul>
      </el-header>
      <el-main>Main</el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>

<script>
import Api from "../api/homeApi";
export default {
  data() {
    return {};
  },
  created() {
    this.getSCarousels();
  },
  methods: {
    async getSCarousels() {
      let swit = await Api.getCarousel();
      console.log(swit);
    }
  }
};
</script>
<style lang="scss" scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}
.el-header {
  text-align: right;
  line-height: 53px;
  background: #3d3d3d;
  color: white;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
